package com.fifth.apartment.service.impl;

import com.fifth.apartment.entity.User;
import com.fifth.apartment.mapper.UserMapper;
import com.fifth.apartment.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * TODO
 *
 * @author Dao
 * @since 2024/7/2
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper mapper;



    @Override
    public String selectUserPassword(String username) {
        String  password = mapper.selectUserPassword(username);
        return password;
    }

    @Override
    public User selectAllUser(String account) {
        User user = mapper.selectAllUser(account);
        return user;
    }

    @Override
    public User selectUserByPhone(String phone) {
        User user = mapper.selectUserByPhone(phone);
        return user;
    }
}
